package lab02;

public class Zelos implements Boss {
    private String name;
    private int HP;

    public Zelos(String name, int HP) {
        this.name = name;
        this.HP = HP;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getHP() {
        return HP;
    }

    public void setHP(int HP) {
        this.HP = HP;
    }

    public void attack() {
        System.out.println(this.name + "生命值是" + this.HP);
    }
    public void move() {
        System.out.println(this.name + "正在进行飞行移动");
    }
    public void blood() {
        if(HP < 10){
            HP += 30;
            System.out.println(this.name + "HP+30！当前HP为" + this.HP);
        } else {
            System.out.println(this.name + "当前HP为" + this.HP);
        }

    }
}
